package cn.sh.library.mgts.common;

import java.util.HashSet;
import java.util.Set;

public class CommonUtil {

	private static boolean rebuildFlag = false; // 重生索引
	private static Set<String> blockBibs = new HashSet<String>();

	public static void rebuildIndex() {
		rebuildFlag = true;
	}
	
	public static void completeRebuild() {
		rebuildFlag = false;
	}
	
	public static boolean isRebuild() {
		return rebuildFlag;
	}
	
	public static void setBlockBibs(Set<String> blocks) {
		blockBibs = blocks;
	}
	
	public static boolean isBibBlocked(String bibno) {
		return blockBibs.contains(bibno);
	}
}
